import 'package:color_dart/RgbaColor.dart';
import 'package:flutter/cupertino.dart';

class Active extends StatefulWidget {
  Active({Key key}) : super(key: key);

  @override
  _ActiveState createState() => _ActiveState();
}

class _ActiveState extends State<Active> {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 45,
      decoration: BoxDecoration(
          gradient: LinearGradient(
              begin: Alignment.centerLeft,
              end: Alignment.centerRight,
              colors: [rgba(254, 243, 227, 1), rgba(251, 242, 228, 1)])),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Container(
            width: 86,
            height: 20,
            decoration: BoxDecoration(
              border: Border(
                right: BorderSide(color: rgba(134, 86, 8, 1), width: 1),
              ),
            ),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Text(
                  '需求动态',
                  style: TextStyle(color: rgba(134, 86, 8, 1), fontSize: 15),
                )
              ],
            ),
          ),
          Container(
            child: Row(
              children: [
                Text(
                  '竞标中，已有 6 个正在咨询',
                  style: TextStyle(color: rgba(134, 86, 8, 1), fontSize: 12),
                )
              ],
            ),
          ),
          Container(
              height: 45,
              width: 117,
              decoration: BoxDecoration(
                  gradient: LinearGradient(
                      begin: Alignment.centerLeft,
                      end: Alignment.centerRight,
                      colors: [rgba(212, 156, 72, 1), rgba(230, 203, 151, 1)])),
              child: Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  SizedBox(
                    width: 22,
                    height: 17,
                    child: Image.asset(
                      'lib/assets/images/need/message.png',
                    ),
                  ),
                  Padding(padding: EdgeInsets.only(left: 7)),
                  Text(
                    '在线咨询',
                    style:
                        TextStyle(color: rgba(255, 255, 255, 1), fontSize: 15),
                  ),
                ],
              )),
        ],
      ),
    );
  }
}
